3 cups half-and-half
1 cup 2% milk
1/2 cup white sugar
1/2 cup unsweetened cocoa powder
1 tablespoon vanilla extract
1 tablespoon coconut extract
1/2 teaspoon kosher salt
1/2 cup whipped cream, or more to taste
1/4 cup toasted, shredded coconut
Whisk half-and-half, milk, sugar, and cocoa powder in a saucepan over medium-high heat until cocoa and sugar dissolve. Remove from heat when mixture begins to steam, 5 to 10 minutes.
Whisk vanilla extract, coconut extract, and salt into cocoa mixture. Pour into glasses and top each with whipped cream and toasted coconut.