Peel and finely chop the onion and garlic.
Slice the sun-dried tomatoes into thin strips if not pre-julienned.
Heat a deep skillet over medium-high and add 3 tablespoons of oil from the sun-dried tomato jar.
Add the chopped onion and cook 3–4 minutes until softened, then add the garlic and cook 30 seconds more.
Sprinkle 2 tablespoons flour over the onions, stir to coat, and cook briefly to remove raw flour taste.
Slowly pour in 1½ cups vegetable broth while stirring to create a smooth sauce.
Add the sliced sun-dried tomatoes and 2 teaspoons tomato paste, stir, and bring to a gentle simmer; cook about 5 minutes.
Pour in 1 cup heavy cream, then add ½ teaspoon Italian herbs, ¼ teaspoon salt, and ¼ teaspoon black pepper; stir to combine.
Add 1 lb gnocchi to the pan, stir, cover, reduce heat to medium, and cook 6–7 minutes until gnocchi are tender and cooked through.
Remove the lid, stir in 1 cup fresh spinach and ½ cup grated Parmesan, and cook about 1 minute until the spinach wilts and cheese melts.
Taste and adjust seasoning, then serve topped with fresh basil leaves and extra Parmesan.