Chris Pratt and Anna Faris have settled their divorce and agreed to share custody of their six-year-old son.

The pair married in 2009 before splitting eight years later.

The details of their divorce have now been revealed.

Parks And Recreation star Pratt, 39, and Scary Movie actress Faris, 41, have agreed on a “flexible timeshare” over their son Jack and will also live no further than five miles apart until the child completes sixth grade, according to court documents.

If either party plans on moving outside the agreed limit, they must provide the other with written notice.

Both waived claims to spousal support having signed a prenuptial agreement before they tied the knot in July 2009.

Child support was also set to zero, the document shows. Both parents will contribute to a joint bank account for Jack’s monthly expenses.

A divorce can be a very stressful time, but we are here to help. You can visit our Divorce and Separation page here.