Avoiding sun is essential and other options can help. What you can do to lessen them is to try a combination of Retin A, hydroquinone, and hydrocortisone to prevent further darkening of your skin and actually make the sun spots lighter.
During this application, you can use a number of different things to make the spots better such as intense pulse light, lasers, Active FX /CO2 resurfacing, and microdermabrasion. Some of these treatments can remove some superficial layers like microderm and superficial peels and help the topical medications go deeper to work on the cells and decrease the pigmentation.
More significant resurfacing will also help reduce the spots by removing them like co2, and deeper chemical peels. IPL can treat deeper pigments that even the co2 laser may not be able to reach. Sunscreen is essential that blocks uva and uvb light. And, physical blocks such as hats, and different screens during driving and at home can physically block sun from reaching your skin.