Add garlic, rosemary, and thyme. Cook for 1 minute until fragrant. Press Cancel.
Stir in the chopped sun-dried tomatoes, rinsed cannellini beans, and vegetable broth.
Secure the lid and set the valve to sealing. Cook on Manual/Pressure Cook setting on High for 5 minutes.
When the cooking cycle finishes, allow the pressure to naturally release for 10 minutes, then carefully quick release any remaining pressure.
Open the lid. Stir in the heavy cream (or coconut milk) and Parmesan cheese, if using.
Use an immersion blender to blend about one-third of the soup directly in the pot until creamy. Alternatively, carefully transfer 2 cups of soup to a regular blender, blend until smooth, and return to the pot.
Stir in the fresh spinach until wilted. Season with salt and pepper. Serve hot.
Notes
For a thicker soup without blending, add 1 tablespoon of cornstarch mixed with 2 tablespoons of cold water during the final step before adding spinach.