tmux how to kill all sessions

C
pkill -f tmux
Source

Also in C: