Cook the gnocchi: In a large pot, bring salted water to a boil. Add the gnocchi and cook according to package instructions or until they float to the surface. Drain and set aside.
Prepare the sauce: In a large skillet, heat the olive oil over medium heat. Add the minced garlic and sauté for about 1 minute until fragrant, being careful not to burn it.
Add cream and cheese: Pour the heavy cream into the skillet and gently bring to a simmer. Stir in the freshly grated Parmesan until melted and creamy.
Develop flavor: Add thyme, spinach, sun-dried tomatoes, and red pepper flakes (if using) to the skillet. Stir until the spinach has wilted and everything is well combined.
Mix in gnocchi: Gently fold the cooked gnocchi into the sauce until evenly coated. Season with salt and pepper to taste.
Simmer briefly: Let the gnocchi sit in the sauce over low heat for 2-3 minutes to absorb all the flavors.
Serve: Remove the skillet from heat and generously sprinkle fresh basil leaves on top before serving.
Notes
Serve in shallow bowls with extra Parmesan for an elegant touch.