Begin by melting the unsalted butter in a large skillet over medium heat, allowing it to foam up before adding the next ingredient.
Once the butter is melted, add the finely chopped onion to the skillet. Sauté for approximately 4-5 minutes, or until the onion becomes translucent and tender. Stir occasionally to prevent sticking.
Add the minced garlic to the skillet. Sauté for an additional 1-2 minutes, until the garlic releases its aromatic fragrance—be careful not to let it burn.
Incorporate the peas into the skillet, mixing them well with the onion and garlic. If using fresh peas, allow them to cook for about 5-7 minutes, stirring often; if using frozen peas, cook until heated through, around 3-4 minutes.
Sprinkle the fresh thyme and finely chopped rosemary over the peas, stirring gently to ensure the herbs are evenly distributed throughout the mixture.
Season the dish with salt and black pepper to taste. Then, drizzle the fresh lemon juice over the peas, adding a bright, tangy flavor to the dish.
Remove the skillet from heat, and finish the dish by garnishing it with the lemon zest, which adds an additional burst of freshness.
Transfer the herbed peas to a serving dish, and enjoy them as a delightful, vibrant side for your Thanksgiving feast!