Heat oven to broil; place a rack 6" from the heating element. Put the first 9 ingredients into a large bowl and toss. Transfer ingredients to a foil-lined baking sheet; broil, turning a few times, until blistered, 10–12 minutes. Transfer all but the peppers and chiles to a bowl; let cool. Continue broiling peppers and chiles until soft, 3–5 minutes. Let steam in a covered bowl for 15 minutes.
Peel garlic and stem, seed, and peel peppers and chiles; transfer all broiled vegetables to a food processor; process until finely chopped. Transfer salsa to a bowl and stir in red onions, cilantro, lime juice, and mangoes; season with salt.
