There's a variety of ways. The best way I can think of is equip everyone with Shadow-absorbing or -blocking armor, as well as the Insomniac ability. In battle, have Quina cast Night, and then have Vivi cast Doomsday twice. But you have to be really quick since the Yans don't stay asleep for long.