Bring 600 ml water to the boil. Hang the tea bags in the water and let them steep for 5-8 minutes. Remove the bag. Peel mangos and cut the flesh from the stone. Weigh 400 g fruit flesh.
Cut 200 g mango into small cubes and puree the remaining mango. Put tea, mango puree, mango pieces, star anise and jam sugar in a pot and bring to the boil while stirring. Let everything boil for about 3 minutes.
Pour the jam into the prepared jars and close them immediately.