I assume it would be very fast and painless if it just comes charging in.
Even if it comes in very fast, you’re still talking about many months of forewarning, perhaps even many hundreds of years if it was a “normal” star instead of something like a brown dwarf.
You know you got a true friend when they give you one of their kidneys.