01 - Preheat the oven to 350°F. Line two baking sheets with parchment paper.
02 - In a medium bowl, whisk together the flour, baking soda, and salt. Set aside.
03 - Using an electric mixer or whisk, cream the softened butter with granulated and brown sugar until light and fluffy, about 2 minutes.
04 - Beat in the eggs one at a time, then add the vanilla extract and mix until smooth.
05 - Gradually add the dry ingredients to the wet mixture, stirring just until combined.
06 - Fold in the chocolate chips and chopped nuts, if using.
07 - Drop tablespoon-sized balls of dough onto the prepared baking sheets, spacing them about 2 inches apart.
08 - Bake for 10 to 12 minutes until edges are golden but centers remain soft.
09 - Let cookies cool on the baking sheet for 5 minutes before transferring to a wire rack to cool completely.