Add node-ip type definitions

Add node-ip type definitions file with a test script.