It's not clear what this dialogue is about.
You missed some letters in the verbs.

A:Нужно закрыть дверь.
B: (Silence)
A: Нужно закрыть.
B: (Silence(.
A: Закрывай!

The last is the command form.