Libero changes the Pokémon's type to match the type of the move it is about to use, just before the move is executed. The Pokémon reverts to its original type upon switching out.
In Generation IX, Libero can only activate once per switch-in.