Combine the chocolate and heavy cream in a saucepan and cook it over low heat, stirring, just until the choco late is melted and the sauce is smooth.
Add the sugar and cook, stirring, until completely dissolved.
Off the heat, stir in the butter and flavoring.
Transfer to covered containers or jars and store in the refrigerator.
The sauce will keep for up to 2 weeks.