Magnetic energy fluxes in close-in star-planet systems