01 - Preheat oven to 350°F. Line two baking sheets with parchment paper and set aside.
02 - In a medium bowl, whisk together the gluten-free flour, baking soda, salt, cocoa powder, and espresso powder until evenly distributed. Set aside.
03 - In a large mixing bowl, beat the softened butter, coconut oil, brown sugar, and granulated sugar together using an electric mixer until light and creamy, about 2–3 minutes.
04 - Add the eggs one at a time, beating well after each addition until fully incorporated. Mix in the vanilla extract.
05 - Gradually add the dry ingredient mixture to the wet ingredients, mixing on low speed until just combined. Do not overmix.
06 - Using a spatula, fold in the toasted coconut, dark chocolate chips or chunks, and nuts if using, distributing evenly throughout the dough.
07 - Using a cookie scoop or tablespoon, drop mounds of dough onto the prepared baking sheets, spacing them about 2 inches apart to allow for spreading.
08 - Bake for 11–13 minutes, or until the edges are set and the centers remain slightly soft. Avoid overbaking for the best chewy texture.
09 - Let the cookies rest on the baking sheets for 5 minutes, then transfer to a wire cooling rack to cool completely before serving or storing.