Preheat oven to 375°F.
In a bowl, whisk together flour, baking soda, and salt.
In a large bowl or stand mixer, beat butter, granulated sugar, and brown sugar until creamy.
Add eggs one at a time. Mix well after each.
Stir in vanilla extract.
Gradually add dry ingredients to wet ingredients. Mix until just combined.
Stir in chocolate chips and add toasted nuts (if using).
Drop rounded teaspoons of dough onto a baking sheet.
Bake for 9–11 minutes, until edges are golden and centers are soft.
Let cool on baking sheet for a few minutes before transferring to a cooling rack.