249:Door_CloseWaitOpen(tag, speed, delay, light_tag)
Closes tagged doors and opens them after a delay, which is expressed in octics, not tics. An octic is an eighth of a second; for 30 seconds for example you specify 240 octics (the reason the unit is octics is because this special was introduced by ZDoom when the main editing format was Hexen, which limited arguments to 0-255).
Speed is number of eighths of map units per tic, so 16 means regular doors, while 64 means turbo. Light_tag is for the Boom door-linked dynamic light effect.