Don't overdo the xanthan gum: A little goes a long way. Too much turns it into pudding. Use the exact pinch called for.
Bulk dry mix: Combine 1 cup instant espresso powder, 1/2 cup cocoa powder, 1 1/2 cups sugar, and 1 teaspoon xanthan gum. Store in an airtight jar. To make one serving, use 1/4 cup of the dry mix + 1 cup milk + 1 cup ice. Blend and serve.
For an ultra-creamy version: Use 1/2 cup milk and 1/2 cup frozen milk cubes instead of ice.
Dairy-free: Use oat milk or full-fat canned coconut milk.