Obsessive Compulsive Development has written a hack that they call Taboo. This hack enables warning dialog when you try to close out of Safari and there are multiple tabs open. This feature resembles the one in Firefox. Taboo’s other function is that you can disable the warning dialog that now appears when opening a download file automatically. Many users find this feature annoying in Mac OS X Tiger, even though it provides extra security.
For more Safari hacks and addons check out PimpMySafari.com who has the best catalog of Safari addons. There is now even adblocking similar to Firefox’s AdBlock extenstion!