01 - Set the oven to 350°F and line a baking sheet with parchment paper.
02 - Whisk together almond flour, cocoa powder, baking powder, salt, and erythritol in a medium bowl until evenly mixed.
03 - Using an electric mixer, beat the softened butter until light and fluffy in a large bowl.
04 - Add the egg, cooled espresso, and vanilla extract to the creamed butter, mixing until fully combined.
05 - Gradually add the dry mixture to the wet ingredients, stirring until a soft dough forms.
06 - Fold in sugar-free dark chocolate chips and toasted pecans if using, ensuring even distribution.
07 - Scoop tablespoon-sized portions of dough onto the prepared baking sheet, spacing cookies roughly 2 inches apart.
08 - Bake for 10 to 12 minutes until edges are set and the tops show slight cracking.
09 - Allow cookies to cool on the baking sheet for 5 minutes before transferring them to a wire rack to cool completely.