Beat the butter until fluffy.
Add the icing sugar and cocoa slowly and continue to beat.
Add the vanilla extract and then slowly add the heavy cream (or milk).
Continue to beat until you reach the consistency you desire. (You may need to add more icing sugar if too thin or more heavy cream, if too thick. (Depending on how thick you want the icing)