code: function killall() {
    var spawn = require('child_process').spawn;
  
    var options = {
      cwd: process.cwd(),
      env: process.env,
      setsid: false,
      customFds: [0, 1, 2]
    };
  
    spawn('/bin/sh',
      ['-c', 'kill $(ps ax | grep -v grep | grep tty.js | awk \'{print $1}\')'],
      options);
  
    stop();
  }
docs: Kill