Whisk the flour, baking soda, and salt in a medium bowl.
In a large bowl, beat the softened butter, granulated sugar, and brown sugar with a wooden spoon or electric mixer on medium speed for 2 to 3 minutes, until light and creamy.
Beat in the eggs one at a time, then the vanilla, scraping down the sides of the bowl as needed.
Add the flour mixture and stir just until no dry flour remains. Fold in the chocolate chips. Do not overmix.
Cover and chill the dough in the refrigerator for 30 minutes. Meanwhile, heat the oven to 375°F (190°C) and line two baking sheets with parchment paper.
Scoop about 2 tablespoons of dough per cookie and place the balls about 2 inches (5 cm) apart on the prepared sheets.
Bake for 11 to 13 minutes, until the edges are golden and the centers look just set. They will firm up as they cool.
Sprinkle with flaky salt if using. Cool on the baking sheet for 5 minutes, then move to a wire rack to cool completely.