I was wondering about that. Didn't seem right when I read it.
If the spaceship went at 99.9999999% of the speed of light and didn’t slow down or stop at the nearest star but simply whipped around the star and came right back it would be a little over 8 years. That’s how much the earth would age. The occupants of the spaceship would age much less because of the time dialation.