Peel the papaya, cut it in half lengthwise and scrape out the seeds and membrane. Slice crosswise into thin half-moons about 1/8 inch thick.
Toss the slices with 1 tablespoon kosher salt in a large glass bowl and let sit 30 to 60 minutes. Drain, rinse well under cold water and squeeze or pat dry.
Stir together the vinegar, water, sugar and 2 teaspoons salt until dissolved. Add the garlic, chilies and onion if using.
Pack the papaya into clean glass jars and pour the brine over it until completely covered. Press down to release air bubbles and seal.
Refrigerate at least 2 to 4 hours before eating. The flavor is best after 1 to 3 days. Keep refrigerated and submerged for up to about 1 month.