Prep the beans: Rinse and trim the ends. Keep them whole for a clean look, or cut in half if you prefer.
Blanch: Bring a large pot of salted water to a boil. Add green beans and cook 2–3 minutes until bright green and crisp-tender.
Shock: Immediately transfer beans to an ice bath to stop cooking.
Drain well and pat dry.
Toast the nuts: In a large skillet over medium heat, toast almonds or pecans dry for 2–3 minutes, stirring, until fragrant. Remove and set aside.
Make garlic butter: In the same skillet, add olive oil and butter over medium heat. When melted and foamy, add minced garlic and cook 30–45 seconds until fragrant.
Don’t brown the garlic.
Sauté the beans: Add the blanched beans to the skillet. Toss to coat in garlic butter and cook 2–3 minutes until heated through.
Add flavor boosters: Stir in dried cranberries, lemon zest, and a squeeze of lemon juice. Season generously with salt and pepper.
Add a pinch of red pepper flakes if you like heat.
Finish and serve: Sprinkle with toasted nuts and chopped parsley if using. Taste and adjust seasoning. Serve warm.