Prepare the dough. In a bowl, whisk together the flour, cocoa powder, salt, and baking powder. In a separate mixing bowl, cream the softened butter, brown sugar, and granulated sugar until light and fluffy. Mix in the egg yolks, vanilla, heavy cream, and espresso powder. Gradually add the dry ingredients and mix until a dough forms.
Chill the dough. Cover and refrigerate for at least 1 hour or overnight. For a quicker option, freeze the dough for 10–15 minutes, until firm enough to scoop and roll.
Shape the cookies. Scoop approximately 1 tablespoon of dough and roll into balls. Place on a prepared baking sheet. Use a ¼ teaspoon measuring spoon to gently press an indentation into the center of each ball.
Bake. Bake at 350°F for 9–10 minutes.
Reset the centers. Immediately after baking, gently press the centers again with the ¼ teaspoon measuring spoon while the cookies are still warm.
Cool completely. Transfer the cookies to a cooling rack and allow them to cool completely before filling.
Prepare the ganache. Add the semi-sweet chocolate, heavy cream, butter, vanilla, and salt to a heat-safe bowl. Melt gently, stirring until smooth. Allow the ganache to cool for approximately 10 minutes.
Fill the cookies. Spoon the ganache into the center of each cooled cookie. Add Christmas sprinkles while the ganache is still soft, if desired.
Let set. Allow the ganache to firm up for approximately 1–2 hours before serving or storing.