In a large glass measuring cup or jar, combine sugar, espresso, cocoa powder, coconut sweetened condensed milk, dairy-free butter, and salt.
Microwave water for about 2 minutes until very hot.
Pour hot water over ingredients and stir until fully dissolved and smooth.
Let cool slightly, then stir in vanilla and rum extract.
Once fully cooled, transfer to a jar or bottle and refrigerate.