Tear all the chiles into large pieces and toast them in a large dry skillet over medium heat until they change color a bit, about 2 minutes. Add the spices and continue to toast for 2 to 3 minutes until everything is fragrant. Remove from heat and carefully add about 1 cup of hot water to just cover the chiles. Turn the heat to low and simmer for about 15 minutes.
Place a rack in the bottom of a large stockpot and fill halfway with water. Bring to a boil over high heat, then carefully lower the jars into the pot using a holder. Leave a 2 inch space between the jars. Pour in more boiling water if necessary until the water level is at least 1 inch above the tops of the jars. Bring the water to a full boil, cover the pot, and cook for 30 more minutes.
Have sterilized pint jars and lids and screw caps ready (they should all be washed in very hot water). Use a canning funnel and ladle hot salsa into jars, leaving a ½-inch head space. Wipe rims clean with a damp cloth and carefully place lid on and screw cap in place. Process in a boiling water bath for 15 minutes, then place upright on counter for 24 hours (see recipe notes for link to USDA Canning Guidelines). You will hear popping sounds as the jars seal. If after 24 hours, any haven't sealed, put in refrigerator to use now.