Preheat your oven to 350°F (175°C) and line baking sheets with parchment paper if desired.
In a large mixing bowl, cream together the softened butter, brown sugar, and granulated sugar until light and fluffy.
Add the eggs one at a time, mixing well after each addition. Stir in the vanilla extract.
In a medium mixing bowl, whisk together the flour, baking soda, and salt.
Gradually add the dry ingredients to the wet mixture, mixing until just combined.
Stir in the rolled oats, chocolate chips, chopped nuts, and shredded coconut (if using) until evenly distributed.
Using a cookie scoop or tablespoon, drop dough onto the prepared baking sheets, leaving enough space between each cookie.
Bake in the preheated oven for 10-12 minutes or until the edges are golden brown.
Remove from the oven and let cool on the baking sheets for a few minutes before transferring to wire racks to cool completely.