They could have used a dense Dyson sphere to “suck” the energy of the star, but if that was the case we would be able to detect its infrared radiation.
https://en.wikipedia.org/wiki/Dyson_sphere
Anyway, I prefer the giant star eating dragon alternative ;-)