Preheat oven to 350°F (175°C). Line your baking sheets with parchment paper or silicone mats.
Cream the butter and sugars: In a large mixing bowl, beat the softened butter, granulated sugar, and brown sugar together until light and fluffy (about 2–3 minutes).
Add eggs and vanilla: Beat in the eggs one at a time, then mix in the vanilla extract until well combined.
Combine dry ingredients: In a separate bowl, whisk together the flour, baking soda, baking powder, and salt.
Mix dry into wet: Gradually add the dry ingredients into the wet mixture, mixing just until combined. Don’t overmix.
Add the chocolate chips (and optional nuts) and fold them into the dough with a spatula or wooden spoon.
Scoop the dough: Drop dough by rounded tablespoons or use a cookie scoop onto the prepared baking sheets, leaving about 2 inches of space between each cookie.
Bake for 10–12 minutes, or until the edges are lightly golden and the centers are still soft.
Cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.