Preheat your oven to 350°F (175°C) and line a baking sheet with parchment paper.
In a medium bowl, combine the shredded coconut, flour, baking soda, and salt. Mix well and set aside.
In a large bowl, cream together the softened butter, brown sugar, and granulated sugar until light and fluffy, about 2-3 minutes.
Beat in the eggs one at a time, then stir in the vanilla extract.
Gradually add the dry ingredients to the wet mixture, mixing until just combined. If using, fold in the chopped nuts and chocolate chips.
Drop rounded tablespoons of dough onto the prepared baking sheet, spacing them about 2 inches apart.
Bake for 10-12 minutes, or until the edges are golden brown. The centers may look slightly underbaked; they will firm up as they cool.
Allow the cookies to cool on the baking sheet for 5 minutes before transferring them to a wire rack to cool completely.