Melt the butter in a medium saucepan over medium heat.
Remove from heat and whisk in cocoa powder until smooth and lump-free.
Add powdered sugar and milk a little at a time, whisking until creamy and spreadable.
Stir in vanilla extract and salt. Taste and adjust the milk if needed.
Let it sit for 10 minutes to thicken slightly before frosting cupcakes.