Preheat oven to 350°F and grease or line an 8x8" pan with parchment paper.
In a large bowl, cream the butter, granulated sugar and brown sugar together. Add the egg and vanilla extract and mix well.
Fold in the flour, baking soda, salt and chocolate chips.
Using a spoon, spatula or your hands, press the cookie dough down into the prepared pan in an even layer and smooth out the top.
On top of the uncooked cookie dough, sprinkle the chopped pecans and chocolate chips
Pour the sweetened condensed milk on top of the pecans and chocolate chips and ensure the entire surface is covered. Sprinkle on the shredded coconut to evenly coat the surface.
Bake for 30-35 minutes or until the coconut starts to brown and the cookie dough layer is cooked through. Allow it to cool for at least 10 minutes, cut into bars and enjoy!
Notes
Gluten-free version: Opt for gluten-free flour instead of all-purpose flour. Nut-free version: Omit the chopped pecans.