The chocolate is likely what is called "ready ice" fudge frosting. It is similar to icing used on top of boston cream pie, eclairs, and donuts.
You could try finding a fudge frosting recipe and going from there. A chocolate ganache would also work well, and taste a bit better and less sweet. But for the texture you desire, something with corn syrup would work well.
This is the bucket it comes in..