I'd recommend going to versiontracker.com and search for 'shutdown'. I did that and found 10 or so different apps that all do what you schedule shutdown/restart/sleep times. While I personally haven't used any of them, hopefully some of the user reviews there will help you decide. Though I'm not sure of any widgets though.