Preheat the oven to 350°F. Line baking sheets with parchment paper and set aside.
In a large bowl, cream the butter, granulated sugar and light brown sugar with a mixer until light and fluffy, 2 to 3 minutes.
Add the eggs one at a time, beating well after each one. Beat in the vanilla.
In a separate bowl, whisk together the flour, baking soda, baking powder and salt.
Add the dry mix to the butter mixture a little at a time, mixing until everything is well combined.
Stir in the chocolate chips and nuts (if using) with a large spoon.
Scoop the dough by the level tablespoon, or roll it into 1¼-inch balls, and drop it onto the prepared sheets about 2 inches apart.
Bake for 10 minutes (all-purpose) or 11 minutes (gluten-free), until the edges are just lightly browning. Don't overbake, or the cookies turn brittle and dry.
Let the cookies cool on the sheet for a few minutes, then move them to a wire rack to cool completely.