I would recommend using a recipe to get it thickened right, and taste good. But try adding equal parts of granulated sugar, cocoa powder, and 1/2 that amount of cornstarch. Then add 4 times that amount of milk/cream. Whisk it together well, then heat up the pan, and stir until thickened. Add a bit of vanilla or brewed coffee and chill for at least an hour.