Use a vegetable peeler to peel the mangoes.
Continue using the peeler to shave the mango flesh into long, thin ribbons, placing them in a large serving bowl.
Thinly slice the red onion into half-moons and add it to the mango ribbons.
Add the finely chopped chiles, salt, freshly ground black pepper, and lime juice to the bowl.
Sprinkle in the sugar, starting with 1 tablespoon. (15 ml / 0.5 fl oz)
Mix everything together thoroughly, tasting as you go.
Add more sugar only if needed to balance the heat and tang.
Cover the bowl and refrigerate for at least 2 hours to allow the flavors to marinate and intensify before serving.