Preheat the oven to 350°F (175°C).
In a large mixing bowl, cream together the softened butter, granulated sugar, and brown sugar until light and fluffy.
Add the eggs one at a time, mixing well after each addition, then stir in the vanilla extract.
In a separate bowl, whisk together the flour, baking soda, and salt.
Gradually add the dry ingredients to the butter mixture, mixing until just combined, then fold in the chocolate chips and nuts if using.
Scoop tablespoon-sized portions of dough onto greased or lined baking sheets, spacing them about 2 inches apart.
Bake in preheated oven for 10-12 minutes or until the edges are golden brown and the centers are set.
Let cookies cool on the baking sheets for a few minutes before transferring them to wire racks to cool completely.