clear.ts 209 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 import { Game } from "../../game/Game"; import { Room } from "../../room/Room"; export function clear(rooms: Room[]): void { rooms.forEach((room) => { room.game?.finishGame(); room.close(); }); }