Grind the sugar into a powder in a coffee grinder.
In the bowl of the mixer, add cream cheese, cream, cocoa, espresso powder, almond or vanilla extract and whisk on medium-high speed until soft peaks.
Gradually add powdered sugar, without ceasing to beat, until solid peaks form.