Preheat the oven to 350°F and line baking sheets with parchment paper.
Whisk together the flour, baking soda, and salt.
Beat the butter, brown sugar, and granulated sugar until creamy.
Beat in the eggs one at a time, then add the vanilla.
Gradually mix in the dry ingredients just until combined.
Fold in the oats, chocolate chips, pecans, and coconut.
Scoop rounded portions of dough onto the prepared baking sheets about 2 inches apart.
Bake for 10–12 minutes, until the edges are lightly golden and the centers remain soft.
Cool on the baking sheet for 5 minutes, then transfer to a wire rack.