This is the custom resting system that I used for Red Moon Rising. It is a simple but effective system that does away with these instant full healings that occur through default BW resting. The player is presented with an options box, similar to that in Baldur's Gate, and can pick the resting duration. Hitpoints are healed at a certain rate, lending more realism to recuperation and time is also passed during resting phases.
See the included read me for more details on implementation of the system into your mod.
The scripts also seem to work in NWN2, though this has not been tested as extensively. You might need to change the effect used though, as Obsidian switched the sleep effect from floating zzz's to a pink fluffy cloud.