>>9243762you cant heat up a vacuum, the only efficient way i see for heating up particles that are spread that thinly apart it with microwaves.
but even then, alot of cosmic particles will hit the structure since it will be so huge that enough of them would hit it to cause alot of them to become trapped inside the structure (cosmic particles can penetrate tens of feet of concrete)
and over time those will build up, but you could in theory filter those out with electromagnets since they are charged.
its very difficult and expensive to make things airtight to the degree yoy would need this structure to be, because even when particles are heated it doesnt gaurantee that most of them will be filtered out. and accumulation of particles could cause the decay of the orbit of this craft withing a couple decades.