The gold is a byproduct of generating the electricity. You still get to sell the electricity too.
A star’s fusion reaction ceases when too much of its core turns to iron.
> Using our approach, power plants can generate five thousand kilograms of gold per year, per gigawatt of electricity generation (~2.5 GWth), without any compromise to fuel self-sufficiency or power output.