01 - Preheat oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together flour, baking soda, and salt. Set aside.
03 - In a large bowl, beat softened butter with granulated sugar and brown sugar until creamy and fluffy, about 2 minutes.
04 - Add eggs one at a time, beating well after each addition. Mix in vanilla extract.
05 - Gradually add the dry mixture to the wet ingredients, mixing just until combined to avoid overmixing.
06 - Gently fold in semisweet chocolate chips and chopped nuts if using, with a spatula.
07 - Drop tablespoon-sized mounds of dough, spacing 2 inches apart, onto prepared baking sheets.
08 - Bake for 10 to 12 minutes until edges turn golden and centers appear set but still soft.
09 - Allow cookies to cool on baking sheets for 5 minutes, then transfer to a wire rack to cool completely.