Essentially, you’ll sauté the onions, stirring occasionally, until they’re golden, then stir in sugar and balsamic vinegar along with herbs and spices.
As they cool, you’ll hear the little “tink” sound of the jars sealing. Store any unsealed jars in the fridge and use those first.