Tesla has struggled on virtually every front lately. Dwindling solar panel sales have forced the company to offer the devices at a steep discount, and it was forced to cut features and customization options from its Model 3 vehicle to pave the way for a $35,000 price point.

Unfortunately, the company's cash reserves are similarly-troubled. Ars Technica reports that Tesla is sitting on about $2 billion in cash reserves, which is a dangerous position to be in for a company that has bled money at alarming rates in the past. In the interest of buying much-needed time to return to profitability, the electric carmaker will be selling off shares worth $642 million and taking on $1.35 billion in loans.

Unlike traditional loans which require a company or individual to pay the cash back after a certain amount of time, Tesla is going for "convertible senior notes" this time around. As Ars points out, these notes essentially allow a given lender to snag Tesla stock in lieu of direct repayment when the loan reaches its end date; assuming the stock raises in price, of course.

Tesla's decision to opt for this type of loan seems to imply a certain degree of confidence in the company's ability to turn its current financial situation around. Whether or not that will happen remains to be seen, as Tesla's stock has been on a relatively consistent downward trajectory since December last year, when it sat at around $379 per share. For reference, Tesla shares are now worth about $243 each.

Perhaps Tesla's upcoming Roadster or full-sized Model Y SUV will help it right the ship - only time will tell.

Update: A previous version of this article's headline incorrectly stated that Tesla would be taking on "over" $2 billion in debt. This has since been corrected.