If a creature or an object has Immunity to a damage type, it takes no damage of that type.
If a creature has Immunity to a condition, that condition can't affect it. If the creature already has the condition when it becomes immune, the condition ends immediately for that creature.