Preheat the oven to 175°C (350°F). Line a baking sheet with parchment paper.
Mix dry ingredients: In a medium bowl, whisk together flour, baking soda, and salt. Set aside.
Cream butter and sugars: In a large bowl, beat softened butter, granulated sugar, brown sugar, and vanilla extract until creamy.
Add eggs: Beat in eggs one at a time, mixing well after each addition.
Combine dry and wet: Gradually beat in the flour mixture until fully combined.
Add chocolate and nuts: Stir in chocolate chips and nuts (if using).
Rest the dough (optional): Chill the dough for 30 minutes for a better texture and flavor.
Scoop and bake: Drop rounded tablespoons of dough onto the prepared baking sheet. Bake for 9–11 minutes, or until golden brown.
Cool: Let the cookies cool on the baking sheet for 2 minutes, then transfer to a wire rack to cool completely.