CSM
the star was shedding material into space for years (CSM = CircumStellar Medium)
Technical definition
The interstellar gas and dust surrounding a star or other celestial object, often interacting with ejected stellar materials in complex astrophysical processes.