I would give them a good play before you go to bed. When they wake you up in the middle of the night, just ignore them totally and hopefully they'll settle down. You could try to move all their toys to a different room so if they wanna play while you're sleeping, maybe they'll go to that other room instead?