Bring a large pot of salted water to a boil. Add the store-bought gnocchi and cook according to package instructions, about 2-3 minutes or until they float. Drain and set aside.
In a large skillet over medium heat, melt 1-2 tablespoons of butter until foamy and fragrant, but not browned.
Stir in the pesto and heavy cream, mixing well. Simmer gently for about 2-3 minutes, stirring occasionally until it thickens slightly.
Add the cooked gnocchi to the skillet and gently toss to coat them in the sauce.
Taste and season with salt and pepper as needed. Serve immediately, garnished with extra pesto, grated cheese, or fresh basil if desired.