In a large pot of salted boiling water, cook the gnocchi according to the package instructions until they float to the surface. This usually takes about 2-3 minutes. Drain and set aside.
In a large skillet over medium heat, add the olive oil and minced garlic. Sauté for 1-2 minutes until fragrant, being careful not to burn the garlic.
Add the chopped sun-dried tomatoes to the skillet and cook for another 2-3 minutes.
Pour in the heavy cream and bring to a gentle simmer. Stir to combine and let it thicken slightly for about 5 minutes.
Add the grated Parmesan cheese to the skillet, stirring until melted and creamy. Season with dried basil, salt, and pepper to taste.
Gently fold in the cooked gnocchi until they are well-coated with the creamy sauce. Cook for an additional minute to heat through.
Remove from heat and serve immediately, garnished with fresh basil leaves if desired.