In a small skillet, toast the chiles over medium heat until fragrant, 2 minutes; transfer to a spice blender with the salt. Grind until the chiles are well incorporated into the salt, then transfer to a small bowl with the sugar.
To the skillet, add the remaining spices and toast until fragrant, 1 to 2 minutes. Transfer to the bowl with the chiles and stir to incorporate. Use immediately or store in an airtight container in your pantry.