Node.js v11.0.0 added `timeout.hasRef()` This can replace the `unrefed` property in the code I'm not sure how many people care about backwards compatibility though