Whisk the flour, baking soda and salt together in a medium bowl.
Beat the softened butter with the granulated and brown sugars on medium-high speed for 3 to 4 minutes until light and fluffy.
Beat in the eggs one at a time, then the vanilla, scraping down the sides of the bowl.
Mix in the dry ingredients on low speed just until combined, then fold in the chocolate chips by hand.
Cover and chill the dough for at least 1 hour.
Scoop 2-tablespoon balls onto parchment-lined baking sheets, 2 inches apart. Sprinkle with flaky sea salt if using.
Bake at 350°F for 10 to 12 minutes until the edges are golden and the centres still look soft.
Cool on the baking sheet for 5 minutes, then move to a wire rack to cool completely.