Your startup is going to die, you're going to get a new job (which you'll have no trouble doing), and sometime in the future you'll start another company. Maybe you'll do the next one smarter, since you'll have more experience.
It is very hard to say "This too shall pass" during your darkest days, but tptacek is correct on this one. You'll also know who your true friends are once you get out on the other side.