01 - Preheat the oven to 350°F and line two baking sheets with parchment paper.
02 - Whisk together the all-purpose flour, baking soda, and salt in a medium bowl.
03 - Using an electric mixer or whisk, cream the softened butter with granulated sugar and brown sugar until light and fluffy.
04 - Beat in the eggs one at a time, then mix in the vanilla extract until fully incorporated.
05 - Gradually add the dry mixture to the wet ingredients, stirring until just combined.
06 - Fold in the dried cranberries and nuts, if using, ensuring even distribution.
07 - Drop rounded tablespoons of dough onto the prepared baking sheets, spacing approximately 2 inches apart.
08 - Bake for 10 to 12 minutes, or until the edges turn lightly golden.
09 - Allow cookies to cool on the baking sheets for 5 minutes before transferring to a wire rack to cool completely.