Preheat the oven to 350°F and lightly grease a 10-inch tart pan. Place it on a baking sheet.
In a large bowl, mix together the shredded coconut, flour, and salt.
Add the sweetened condensed milk, vanilla extract, and almond extract. Stir until fully combined and sticky.
Press the mixture firmly into the bottom and up the sides of the prepared pan.
Bake for 20–25 minutes, until the edges are golden and the center is set.
Remove from the oven and let the crust cool completely.
In a heat-safe bowl, warm the heavy cream until it just begins to bubble slightly.
Add the chocolate chips to the warm cream and let sit for about 10–15 seconds.
Whisk until smooth and glossy.
Pour the chocolate filling into the cooled crust and spread evenly.
Let the pie sit at room temperature until the filling is set.
Slice and serve once fully cooled.