Ambien is typically recommended for less than six weeks.

https://recoverypartnernetwork.com/drug/sleeping-pills/ambien-addiction