Halve and slice onions. Coat 12-inch skillet with cooking spray. Over medium heat, cook onions in oil for 15 to 20 minutes, stirring occasionally, or until soft and golden. Stir in thyme, rosemary, salt, and pepper. Serve warm or cover and chill for up to 5 days. Makes 12 servings.