Accidentally deleted /tmp directory


I have accidentally deleted the /tmp directory and now the terminal is unresponsive.
i tried everything , when trying :

open new immediate window, use the dropdown on bottom right to change mode to bash
and run sudo mkdir -p /tmp && sudo chmod 777 /tmp

i am getting

mkdir: cannot create directory ‘/tmp’: Input/output error

and resetting the workspace,
nothing works!.