01 - Bring a large pot of salted water to a gentle boil.
02 - In a large skillet over medium heat, melt the butter. Add the minced garlic and cook for 1 minute until fragrant but not browned.
03 - Stir in the heavy cream and bring to a gentle simmer. Reduce heat to low, then whisk in the pesto and grated Parmesan until smooth. Season with salt and pepper to taste. Keep warm on very low heat.
04 - Meanwhile, cook the gnocchi in boiling water according to package instructions (usually 2–3 minutes, until they float to the surface). Remove the gnocchi with a slotted spoon and transfer directly to the skillet with the sauce.
05 - Gently toss the gnocchi in the sauce to coat evenly. Adjust seasoning if necessary. Divide into bowls and garnish with toasted pine nuts, fresh basil, and extra Parmesan cheese if desired. Serve immediately.